//该文件专门创建整个应用的路由器
import VueRouter from 'vue-router'

//创建并暴露一个路由器
export default new VueRouter({
  routes: [
    // 首页
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/index',
      component: () => import('../views/index.vue')
    },
    {
      path: '/login',
      component: () => import('../views/login.vue')
    },
    //我的
    {
      path: '/mine',
      component: () => import('../views/my/mine.vue')
    },
    {
      path: '/selfInfo',
      component: () => import('../views/my/selfInfo.vue')
    },
    //隐患
    {
      path: '/addProblem',
      component: () => import('../views/problem/addProblem.vue')
    },
    {
      path: '/problemResult',
      component: () => import('../views/problem/problemResult.vue')
    },
    {
      path: '/problemDetail',
      component: () => import('../views/problem/problemDetail.vue')
    },
    {
      path: '/toDoList',
      component: () => import('../views/toDoList.vue')
    },
    {
      path: '/problemDetailChange',
      component: () => import('../views/problem/problemDetailChange.vue')
    },
    {
      path: '/noticeMsg',
      component: () => import('../views/noticeMsg.vue')
    },
    //我的提交
    {
      path: '/mySubmitIndex',
      name: 'MySubmitIndex',
      component: () => import('../views/mySubmit/index.vue')
    },
    {
      path: '/donghuoSubmit',
      component: () => import('../views/mySubmit/donghuoSubmit.vue')
    },
    //我的待办  修改后流程
    {
      path: '/approveWork9',
      component: () => import('../views/specialWork/approveWork9.vue')
    },
    {
      path: '/myToDoList',
      component: () => import('../views/myTodo/index.vue')
    },
    {
      path: '/specialWorkIndex',
      component: () => import('../views/specialWork/index.vue')
    },
    {
      path: '/applyWork',
      component: () => import('../views/specialWork/applyWork.vue')
    },
    {
      path: '/applyResult',
      component: () => import('../views/specialWork/applyResult.vue')
    },
    {
      path: '/safetyMeasure',
      component: () => import('../views/specialWork/safetyMeasure.vue')
    },
    {
      path: '/dataAnalysis',
      component: () => import('../views/specialWork/dataAnalysis.vue')
    },
    {
      path: '/taskConfirm',
      component: () => import('../views/specialWork/taskConfirm.vue')
    },
    {
      path: '/approveWork',
      component: () => import('../views/specialWork/approveWork.vue')
    },
    {
      path: '/approveWorkStatus4',
      component: () => import('../views/specialWork/approveWorkStatus4.vue')
    },
    {
      path: '/approveWorkStatus5',
      component: () => import('../views/specialWork/approveWorkStatus5.vue')
    },
    {
      path: '/approveWorkStatus6',
      component: () => import('../views/specialWork/approveWorkStatus6.vue')
    },
    {
      path: '/approveWorkStatus7',
      component: () => import('../views/specialWork/approveWorkStatus7.vue')
    },
    {
      path: '/approveWorkStatus8',
      component: () => import('../views/specialWork/approveWorkStatus8.vue')
    },

    {
      path: '/workResponsible',
      component: () => import('../views/specialWork/workResponsible.vue')
    }
  ]
})
